package main

import(
	"net/rpc"
	"net/http"

	_ "gitee.com/lzqysoft/framework/services/base/sql"
	"gitee.com/lzqysoft/framework/services/base/service"
	"gitee.com/lzqysoft/framework/common/log"
)

func main() {
	arith := new(service.Auth)
	rpc.Register(arith)
	rpc.HandleHTTP()
	err := http.ListenAndServe(":8001", nil)
	if err != nil {
		log.Error(err)
	}
}